package ru.nsu.fit.ask_joe.log_manager.realization;

import android.util.Log;
import ru.nsu.fit.client.core.log_manager.interfaces.ILogger;

/**
 * @author Ivan Morozov
 */
public class AndroidLogger implements ILogger {
    final String tag;

    public AndroidLogger(final String tag) {
        this.tag = tag;
    }

    @Override
    public void printDebug(String message) {
        Log.d(tag, message);
    }

    @Override
    public void printError(String message) {
        Log.e(tag, message);
    }

    @Override
    public void printInfo(String message) {
        Log.i(tag, message);
    }
}
